import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MesUserComponent} from './mes-user.component';

const routes: Routes = [
    {path: '', component: MesUserComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mes-user/add-mes-user.module#AddMesUserModule'},
            {path: 'list', loadChildren: './list-mes-user/list-mes-user.module#ListMesUserModule'},
            {path: 'modify', loadChildren: './modify-mes-user/modify-mes-user.module#ModifyMesUserModule'},
            {path: 'report', loadChildren: './report-mes-user/report-mes-user.module#ReportMesUserModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MesUserRoutingModule {
}
